﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Wpftest.AttributeStudy
{
    /// <summary>
    /// AttributeStudyForm.xaml 的交互逻辑
    /// 
    /// 
    /// </summary>
    /// 
    //声明依赖属性变量；在属性系统中注册；使用,net属性包装自定义依赖属性

    public partial class AttributeStudyForm : Window
    {
        public AttributeStudyForm()
        {
            InitializeComponent();
        }

        //private void button1_MouseEnter_1(object sender, MouseEventArgs e)
        //{
        //    Button btn1 = sender as Button;
        //    if (btn1 != null)
        //        btn1.Foreground = Brushes.Blue;
        //}

        //private void button1_MouseLeave_1(object sender, MouseEventArgs e)
        //{
        //    this.button1.Foreground = Brushes.Red;
        //    this.button1.Background = Brushes.Green;
        //}
    }
}
